Excecute a command
The PersistenceManager class has a method ExecuteNonQuery to excecute a command directly:
OleDbCommand cmd; cmd = new OleDbCommand( String.Format("delete from [{0}] where [{1}] LIKE {2}", Employee.TableName, Employee.ColumnNames.LastName, "D%")); int rows = PersistenceManager.ExecuteNonQuery(cmd); |